import os
base_dir = os.path.dirname(__file__)
indexpath = os.path.join(base_dir, r'templates\index.html')
print(indexpath)